cmake_minimum_required(VERSION 3.1)

project(cmakeTest LANGUAGES CXX)

add_subdirectory(hello)
add_subdirectory(world)

add_library(hello-world)

target_sources(hello-world
    PRIVATE "hello_world.cc" "hello_world.h")
target_link_libraries(hello-world 
    PRIVATE hello world)
target_include_directories(hello-world 
    PRIVATE hello world)